<template>
  <el-row>
    <el-col :span="24">
      <div class="x-card">
        <div class="x-card-prefix"></div>
        <div class="x-card-title">{{title}}</div>
      </div>
    </el-col>
  </el-row>
  <slot></slot>
</template>

<script setup name="x-card">
defineProps({
  title:{
    type: String,
    default: ""
  }
})
</script>

<style scoped>
.x-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 0 8px 0;
}
.x-card-prefix {
  width: 4px;
  background: #2d82eb;
  height: 18px;
  margin-right: 10px;
}

.x-card-title {
  font-size: 16px;
  font-weight: 400;
}
</style>

